<?xml version="1.0"?>
<recipe>

	<#include "../common/recipe_manifest.xml.ftl" />

	<dependency mavenUrl="com.zxn.presenter:PresenterLib:1.3.5"/>
	<dependency mavenUrl="androidx.recyclerview:recyclerview:1.1.0"/>
	<dependency mavenUrl="com.zxn.divider:dividerlibrary:1.0.8"/>

	<merge from="../common/root/res/values/strings.xml.ftl"
         to="${escapeXmlAttribute(resOut)}/values/strings.xml" />

    <merge from="../common/root/res/values/dimens.xml.ftl"
    	to="${escapeXmlAttribute(resOut)}/values/dimens.xml" />

	<copy from="../common/root/res/drawable-xxhdpi"
        to="${escapeXmlAttribute(resOut)}/drawable-xxhdpi" />
	
	<#if layoutStyle == 'recycler'>
        <instantiate from="root/res/layout/activity_recycler.xml.ftl"
                       to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />    	
	<#elseif layoutStyle == 'linear'>
		<instantiate from="root/res/layout/activity_linear_recycler.xml.ftl"
		               to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
	<#elseif layoutStyle == 'relative'>
		<instantiate from="root/res/layout/activity_relative_recycler.xml.ftl"
		               to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />

	<#elseif layoutStyle == 'smart_refresh'>
		<instantiate from="root/res/layout/activity_smart_refresh_recycler.xml.ftl"
		               to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
	<#else>
        <instantiate from="root/res/layout/activity_recycler.xml.ftl"
                       to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
	</#if>

	<open file="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
    
    <instantiate from="root/src/app_package/SimpleActivity.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
                   
    <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />

</recipe>
